package com.product.android.ui.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;
/**
 * 用于解决Gridview嵌套在Listview时显示不全
 * 
 * <br>Created 2014-5-12 下午6:50:30
 * @version  
 * @author   chenqsh		
 *
 * @see
 */
public class NestInListGridView extends GridView{

	public NestInListGridView(Context context, AttributeSet attrs) {     
        super(context, attrs);     
    }     
    
    public NestInListGridView(Context context) {     
        super(context);     
    }     
    
    public NestInListGridView(Context context, AttributeSet attrs, int defStyle) {     
        super(context, attrs, defStyle);     
    }     
    
    @Override     
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {     
    
        int expandSpec = MeasureSpec.makeMeasureSpec(     
                Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);     
        super.onMeasure(widthMeasureSpec, expandSpec);     
    }     
}
